package com.easyframe.mappers;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.easyframe.system.domain.Menu;
import com.easyframe.system.domain.MenuList;

public interface MenuMapper {
	// 横向导航
	@Select("select * from system_menu")
	List<Menu> queryMenuList();

	// 纵向导航
	@Select("select t.*,'TRUE' as isFolder from system_menu_list t where t.maindirid=#{maindirid}")
	List<MenuList> queryMenuListForTree(@Param("maindirid") int maindirid);
}
